export function getTitleHeight() {
  uni.getSystemInfo({
    success: res => {
      this.statusBarHeight = res.statusBarHeight;
      if (res.system.indexOf("Android") !== -1) {
        this.titleHeight = 48 + this.statusBarHeight;
        this.isIOS = false;
      } else if (res.system.indexOf("iOS") !== -1) {
        this.titleHeight = 44 + this.statusBarHeight;
        this.isIOS = true;
      }
    }
  });
}
